package com.home.cop.employee.model;

import java.util.Date;
import java.util.List;

public class SysMenu implements Comparable<SysMenu>{
    private Integer sysMenuId;

    private String sysMenuName;

    private Boolean sysMenuLevel;

    private Byte sysMenuSort;

    private String sysMenuIcon;

    private String sysMenuUrl;

    private Boolean sysMenuStatus;

    private String sysMenuDesc;

    private Date createTime;

    private List<SysMenu> children;

    /**
     * 是否被选中，角色授权的时候查看
     */
    private Boolean isChecked = false;

    public Integer getSysMenuId() {
        return sysMenuId;
    }

    public void setSysMenuId(Integer sysMenuId) {
        this.sysMenuId = sysMenuId;
    }

    public String getSysMenuName() {
        return sysMenuName;
    }

    public void setSysMenuName(String sysMenuName) {
        this.sysMenuName = sysMenuName == null ? null : sysMenuName.trim();
    }

    public Boolean getSysMenuLevel() {
        return sysMenuLevel;
    }

    public void setSysMenuLevel(Boolean sysMenuLevel) {
        this.sysMenuLevel = sysMenuLevel;
    }

    public Byte getSysMenuSort() {
        return sysMenuSort;
    }

    public void setSysMenuSort(Byte sysMenuSort) {
        this.sysMenuSort = sysMenuSort;
    }

    public String getSysMenuIcon() {
        return sysMenuIcon;
    }

    public void setSysMenuIcon(String sysMenuIcon) {
        this.sysMenuIcon = sysMenuIcon == null ? null : sysMenuIcon.trim();
    }

    public String getSysMenuUrl() {
        return sysMenuUrl;
    }

    public void setSysMenuUrl(String sysMenuUrl) {
        this.sysMenuUrl = sysMenuUrl == null ? null : sysMenuUrl.trim();
    }

    public Boolean getSysMenuStatus() {
        return sysMenuStatus;
    }

    public void setSysMenuStatus(Boolean sysMenuStatus) {
        this.sysMenuStatus = sysMenuStatus;
    }

    public String getSysMenuDesc() {
        return sysMenuDesc;
    }

    public void setSysMenuDesc(String sysMenuDesc) {
        this.sysMenuDesc = sysMenuDesc == null ? null : sysMenuDesc.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public List<SysMenu> getChildren() {
        return children;
    }

    public void setChildren(List<SysMenu> children) {
        this.children = children;
    }

    @Override
    public int compareTo(SysMenu o) {
        return this.getSysMenuSort()-o.getSysMenuSort();
    }

    public Boolean getChecked() {
        return isChecked;
    }

    public void setChecked(Boolean checked) {
        isChecked = checked;
    }
}